package com.travel.recommend.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.travel.common.utils.PageUtils;
import com.travel.common.utils.Query;

import com.travel.recommend.dao.TagPopularityDao;
import com.travel.recommend.entity.TagPopularityEntity;
import com.travel.recommend.service.TagPopularityService;


@Service("tagPopularityService")
public class TagPopularityServiceImpl extends ServiceImpl<TagPopularityDao, TagPopularityEntity> implements TagPopularityService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<TagPopularityEntity> page = this.page(
                new Query<TagPopularityEntity>().getPage(params),
                new QueryWrapper<TagPopularityEntity>()
        );

        return new PageUtils(page);
    }

}